<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
    <meta http-equiv="Expires" CONTENT="0">
    <meta http-equiv="Cache-Control" CONTENT="no-cache">
    <meta http-equiv="Pragma" CONTENT="no-cache">
    <meta name="renderer" content="webkit" />
    <title>${content.groupName!}_小组_${site.siteName!}</title>
    <meta name="keywords" content="${content.keywords!}" />
    <meta name="description" content="[@text_cut s=content.groupDesc! len=225 append='...'/]"  />
    <link href="/default/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css">
    <link href="/default/css/icon.css" rel="stylesheet" type="text/css" />
    <link href="/default/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/default/css/group.css" rel="stylesheet" type="text/css" />
    <link href="/default/css/link.css" rel="stylesheet" type="text/css" />
    <script src="/default/js/jquery.min.js"></script>
    <script src="/vendors/layer/layer.js" type="text/javascript"></script>
    <script src="https://cdn.bootcss.com/popper.js/1.15.0/umd/popper.js"></script>
    <script src="/vendors/bootstrap/js/bootstrap.min.js"></script>
    <script src="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.js"></script>
    <script src="https://unpkg.com/bootstrap-table@1.18.3/dist/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="/default/js/modules/common.js" ></script>
    <script src="/default/js/modules/system-group.js" ></script>
</head>
<noscript unselectable="on" id="noscript">
    <div class="aw-404 aw-404-wrap container">
        <img src="/default/common/no-js.jpg">
        <p>你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!</p>
    </div>
</noscript><body>
[#include "pc/default/common/header.html"/]
<div class="fly-group-nav">
    <div class="circle-nav">
        <ul class="tab-list">
            <li class="tab-item"><a href="/g-${content.shortUrl!}" target="_self">圈首页</a></li>
            <li class="tab-item"><a href="#" target="_self">帖子</a></li>
            <li class="tab-item"><a href="#" target="_self">数据</a></li>
            [@fly_user method="userLogin"]
            [#if userLogin??]
            [@fly_group method="admin" userId = '${userLogin.id!}' groupId = '${content.id}' isadmin='2']
            [#if admin??]
            <li class="tab-item active"><a href="/user/g-${content.shortUrl!}/topic-list" target="_self">管理</a></li>
            [/#if]
            [/@fly_group]
            [/#if]
            [/@fly_user]
        </ul>
    </div>
</div>
<div class="aw-container-wrap">
    <div class="container">
        <div class="row">
            <div class="aw-content-wrap clearfix">
                <div class="col-sm-12 col-md-9">
                    <div class="aw-main-content">
                        <div class="aw-mod aw-topic-list-mod">
                            <!-- tab切换 -->
                            <div class="mod-head">
                                <div class="tabbable">
                                    <!-- tab 切换 -->
                                    <ul class="nav nav-tabs aw-nav-tabs hidden-xs">
                                        <li class="active"><a href="#all" data-toggle="tab">全部内容</a></li>
                                    </ul>
                                    <!-- end tab 切换 -->
                                </div>
                            </div>
                            <!-- end tab切换 -->
                            <div class="aw-mod aw-explore-list">
                                <div class="mod-body">
                                    <div class="aw-common-list">
                                        <table id="table" data-group-id="${content.id}"></table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- 侧边栏 -->
                [@fly_user method="userLogin"]
                <div class="col-sm-12 col-md-3 hidden-xs hidden-sm">
                    [@fly_group method="groupOrUser" groupId = '${content.id}' isadmin='2']
                    [#if (groupOrUser.list?size gt 0)]
                    <div class="aw-mod interest-user">
                        <div class="mod-head"><h3>管理员</h3></div>
                        <div class="mod-body">
                            [#list groupOrUser.list as list]
                            [@fly_user method="user" id = list.userId]
                            <dl>
                                <dt class="pull-left aw-border-radius-5">
                                    <a href="/u/${user.shortUrl}" data-id="51162" class="aw-user-name">
                                        <img alt="${user.nickname!}" src="[#if user.avatar??]${user.avatar!}[#else]/default/common//avatar-mid-img.png[/#if]">
                                    </a>
                                </dt>
                                <dd class="pull-left">
                                    <a href="/u/${user.shortUrl}" data-id="51162" class="aw-user-name">
                                        <span>${user.nickname!}</span>
                                    </a>
                                    <p class="aw-question-tags">[#if list.isadmin = 1 && list.isfounder = 1]创始人[#else]管理员[/#if]</p>
                                    [#if userLogin??]
                                    [#if userLogin.id != user.id]
                                    [@fly_user method="checkFollow" id="${user.id!}" userId="${userLogin.id!}"]
                                    <a class="icon-inverse follow icon icon-plus follow-user[#if checkFollow == true] active[/#if]" data-user-id="${user.id!}"></a>
                                    [/@fly_user]
                                    [/#if]
                                    [#else]
                                    <a href="javascript:;" class="icon-inverse follow icon icon-plus follow-user" data-user-id="${user.id!}"></a>
                                    [/#if]
                                    <p class="signature">${user.signature!}</p>
                                    <p><b>${user.countFans!}</b> 个粉丝, <b>${user.countFollow!}</b> 个关注</p>
                                </dd>
                            </dl>
                            [/@fly_user]
                            [/#list]
                        </div>
                    </div>
                    [/#if]
                    [/@fly_group]
                    <div class="aw-side-bar">
                        <a class="btn btn-primary fly-create-btn" href="/user/group/${content.id}/topic/create">发布帖子</a>
                        <div class="aw-mod aw-text-align-justify">
                            <div class="mod-head">
                                <a href="/people-rank" class="pull-right">更多 &gt;</a>
                                <h3>最新成员</h3>
                            </div>
                            <div class="mod-body">
                                [@fly_group method="groupOrUser" groupId = '${content.id}']
                                [#list groupOrUser.list as list]
                                [@fly_user method="user" id = list.userId]
                                <dl>
                                    <dt class="pull-left aw-border-radius-5">
                                        <a href="/u/${user.shortUrl}"><img src="[#if user.avatar??]${user.avatar!}[#else]/default/common//avatar-mid-img.png[/#if]" alt="${user.nickname}"></a>
                                    </dt>
                                    <dd class="pull-left">
                                        <a href="/u/${user.shortUrl}" class="aw-user-name">${user.nickname!}</a>
                                        [#if userLogin??]
                                        [#if userLogin.id != user.id]
                                        [@fly_user method="checkFollow" id="${user.id!}" userId="${userLogin.id!}"]
                                        <a class="icon-inverse follow icon icon-plus follow-user[#if checkFollow == true] active[/#if]" data-user-id="${user.id!}"></a>
                                        [/@fly_user]
                                        [/#if]
                                        [#else]
                                        <a href="javascript:;" class="icon-inverse follow icon icon-plus follow-user" data-user-id="${user.id!}"></a>
                                        [/#if]
                                        <p class="signature">${user.signature!}</p>
                                        <p><b>${user.countFans!}</b> 个粉丝, <b>${user.countFollow!}</b> 个关注</p>
                                    </dd>
                                </dl>
                                [/@fly_user]
                                [/#list]
                                [/@fly_group]
                            </div>
                        </div>
                        <!--侧边栏插件-->
                        <div class="aw-mod aw-text-align-justify">
                            <div class="mod-head">
                                <a href="/t/label-index" class="pull-right">更多 &gt;</a>
                                <h3>热门标签</h3>
                            </div>
                            <div class="mod-body">
                                [@fly_label method="paginate" sort="id" order="desc" pageSize="10"]
                                [#list paginate.list as list]
                                <dl>
                                    <dt class="pull-left aw-border-radius-5">
                                        <a href="/t/${list.shortUrl!}/"><img alt="" src="[#if list.labelPic??]${list.labelPic!}[#else]/default/common/topic-mid-img.png[/#if]"></a>
                                    </dt>
                                    <dd class="pull-left">
                                        <p class="clearfix">
                                            <span class="topic-tag">
                                                <a href="/t/${list.shortUrl!}/" class="text" data-id="5">${list.title!}</a>&nbsp;
                                            </span>
                                            [#if userLogin??]
                                            [#if userLogin.id != user.id]
                                            [@fly_label method="checkFollow" id="${list.id!}" userId="${userLogin.id!}"]
                                            <a class="icon-inverse follow icon icon-plus follow-label[#if checkFollow == true] active[/#if]" data-label-id="${list.id!}"></a>
                                            [/@fly_label]
                                            [/#if]
                                            [#else]
                                            <a href="javascript:;" class="icon-inverse follow icon icon-plus follow-label" data-label-id="${list.id!}"></a>
                                            [/#if]
                                        </p>
                                        <p><b>${list.countTopic!}</b> 个话题, <b>${list.countFollow!}</b> 人关注</p>
                                    </dd>
                                </dl>
                                [/#list]
                                [/@fly_label]
                            </div>
                        </div>
                    </div>
                </div>
                [/@fly_user]
                <!-- end 侧边栏 -->
            </div>
        </div>
    </div>
</div>
[#include "pc/default/common/footer.html"/]
</body>
</html>